﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.DAL;
using MINERP.MODEL.FoundationModel;

namespace MINERP.BLL.Statistics.PaperManage
{
    public class PaperFaceBLL
    {
        public static List<PaperFace_Info> GetAllPaperFace()
        {
            List<PaperFace_Info> paperFaceList = new List<PaperFace_Info>();
            using (newSampleYPDBEntities db = new newSampleYPDBEntities())
            {
                foreach (var pf in db.paperFace.ToList())
                {
                    paperFaceList.Add(new PaperFace_Info()
                    {
                        PaperFaceID = pf.PaperFaceID,
                        Name = pf.Name,
                        Remark = pf.remark
                    });
                }
            }
            return paperFaceList;
        }
    }
}
